package com.neusoft.service.impl;

import com.neusoft.mapper.DisposalRequestMapper;
import com.neusoft.service.DisposalRequestService;
import com.neusoft.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author akemihomurasama
 */
@Service
public class DisposalRequestServiceImpl implements DisposalRequestService {
    @Autowired
    private DisposalRequestMapper disposalRequestMapper;

    /**
     * 根据患者id查询患者已开立的处置申请
     *
     * @param registerId 患者id
     * @return 申请列表
     */
    @Override
    public Result queryDisposalReqListById(int registerId) {
        return Result.ok(disposalRequestMapper.queryDisposalReqListById(registerId));
    }
}
